package com.itheima.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.CheckItem;
import com.itheima.pojo.Role;

import java.util.List;
@Service
public interface RoleService {

    List<Role> findAll();

    void add(Role role,Integer[] permissionIds);

    PageResult pageQuery(QueryPageBean queryPageBean);

    Role findRoleById(Integer roleId);

    List<Integer> findPermissionIdsByRoleId(Integer roleId);

    void updateEdit(Role role,Integer[] permissionIds);

    void delete(Integer id);
}
